package kr.hkit.powerjava.chapter07;

import java.util.Scanner;

public class Work01 {
	public static void main(String[] args) {
		final int PRODUCT = 100;
		int qt;
		int price=0;
		
		System.out.print("물건의 수량을 입력하세요 : ");
		Scanner sc = new Scanner(System.in);
		
		qt = sc.nextInt();
		
		if(qt>=100){
			price =(int) (qt*PRODUCT*0.8);
		}
		else{
			if(qt>=20){
				price = (int) (qt*PRODUCT*0.85);
			}
			else{
				if(qt>=10){
					price = (int) (qt*PRODUCT*0.9);
				}
				else{
					price = qt*PRODUCT;
				}
			}
		}
		System.out.println(price+"원입니다");
	}
}
